/*
 * @Author: zhuwenzhi
 * @Date: 2023-10-17 18:13:37
 * @LastEditTime: 2024-03-18 09:33:03
 * @LastEditors: zhuwenzhi
 * @FilePath: /itosllm-web/webpack.config.js
 * @Description:
 */
const path = require('path');

console.log('path ', path.join(__dirname, '/src/main/webapp'));

module.exports = {
  mode: 'development',
  entry: path.join(__dirname, '/index.js'),
  devtool: 'inline-source-map', // 跟踪报错发生的原始位置
  devServer: {
    open: '/',
    proxy: {
      '/api': {
        target: 'http://192.168.2.200:32618',
        pathRewrite: { '^/api': '' },
      },
    },
    static: {
      directory: path.join(__dirname, '/'),
      publicPath: '/',
    },
    compress: true,
    port: 18899,
    client: {
      progress: true,
    },
  },
};